package top.lc951.myglide.load.engine.bitmap_recycle;

import android.graphics.Bitmap;

import androidx.annotation.Nullable;
/**
 * todo
 * 1) 算法解析
 *
 * */
interface LruPoolStrategy {
    void put(Bitmap bitmap);

    @Nullable
    Bitmap get(int width, int height, Bitmap.Config config);

    @Nullable
    Bitmap removeLast();

    String logBitmap(Bitmap bitmap);

    String logBitmap(int width, int height, Bitmap.Config config);

    int getSize(Bitmap bitmap);
}
